<include file="Public/head" />
<div class="ncsc-layout wrapper">
    <div id="layoutLeft" class="ncsc-layout-left">
        <div id="sidebar" class="sidebar">
            <div class="column-title" id="main-nav">
                <span class="ico-goods"></span>
                <h2>流水</h2></div>
            <div class="column-menu">
                <ul id="seller_center_left_menu">
                    <volist name="leftmenu['list']" id="vo">
                        <li class='
                            <if condition="$actionurl eq $vo[url]">
                                current
                            </if>
                        '>
                            <a href="__MODULE__/{$vo.url}"> {$vo.name}</a>
                        </li>
                    </volist>
                </ul>
            </div>
        </div>
    </div>
<div id="layoutRight" class="ncsc-layout-right">
    <div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心>流水>流水列表</div>
    <div class="main-content" id="mainContent">
        <div class="tabmenu">
            <ul id="tab" class="tab pngFix">

                <li class="
                    <if condition="$type==-1">active
                    <else /> normal
                    </if>
                    " data-val=""><a href="{:U('paylog/index',array('type'=>-1))}">全部流水</a></li>
                <li class="
                    <if condition="$type==20">active
                    <else /> normal
                    </if>
                    data-val="0"><a href="{:U('paylog/index',array('type'=>20))}">退货流水</a></li>
                <li class="
                    <if condition="$type==0">active
                    <else /> normal
                    </if>
                    data-val="1"><a href="{:U('paylog/index',array('type'=>0))}">购买流水</a></li>
                <li class="
                    <if condition="$type==30">active
                    <else /> normal
                    </if>
                    data-val="2"><a href="{:U('paylog/index',array('type'=>30))}">提现流水</a></li>
                <li class="
                    <if condition="$type==10">active
                    <else /> normal
                    </if>
                    data-val="2"><a href="{:U('paylog/index',array('type'=>10))}">充值流水</a></li>

            </ul>
        </div>
        <form method="post" action="{:U(Paylog/index)}" id="search-form2">
            <table class="search-form">
                <tr>
                    <th>流水号</th>
                    <td class="w150">
                        <input type="text" class="text w150" name="trade_sn" placeholder="流水号" value="{$trade_sn}" />
                    </td>
                    <th>支付时间</th>
                    <td class="w378">
                        <select name="pay_name" class="w150 w160 di-in">
                            <option value="0" <if condition="$type_time == 0">selected</if>>全部</option>
                            <option value="3" <if condition="$type_time == 3">selected</if>>三天内</option>
                            <option value="7" <if condition="$type_time == 7">selected</if>>一周内</option>
                        </select>
                    </td>
                    <td>
                        <label class="submit-border">
                            <input type="submit" class="submit" value="搜索" >
                        </label>
                    </td>
                </tr>
            </table>
        </form>
        <div id="ajax_return">
            <table class="ncsc-default-table order">
                <thead>
                <tr>
                    <th class="w100">流水号</th>
                    <th class="w100">支付时间</th>
                    <th class="w100">金额</th>
                    <th class="w90">流水方式</th>
                    <th class="w90">交易方式</th>
                    <th class="w100">状态</th>
                    <th class="w120">生产时间</th>
                    <th class="w120">操作</th>
                </tr>
                </thead>

                <if condition="$data">
                <volist name="data" id="vo">
                    <tr>
                        <td   class="sep-row">{$vo.trade_sn}</td>
                        <td   class="sep-row">{$vo.pay_time}</td>
                        <td  class="sep-row">{$vo.pay_money}</td>
                        <td  class="sep-row">{$vo.trade_type}</td>
                        <td  class="sep-row">{$vo.pay_name}</td>
                        <td  class="sep-row">成功</td>
                        <td   class="sep-row">{$vo.add_time}</td>
                        <td   class="sep-row"><a href="{:U('paylog/info',['id'=>$vo['id']])}">查看</a></td>
                    </tr>
                </volist>
                <tfoot>
                <tr>
                    <td colspan="20">
                        {$page}
                    </td>
                </tr>
                </tfoot>
                <else />
                    <tr>
                        <td colspan="8"  class="sep-row">无数据</td>
                    </tr>
                </if>
            </table>
        </div>


    </div>
</div>
</div>
<div id="cti">
    <div class="wrapper">
        <ul>
        </ul>
    </div>
</div>
<div id="faq">
    <div class="wrapper">
    </div>
</div>

<include file="Public/foot" />